﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CRM.MODEL
{
    public class PartsImages
    {

        #region 存储过程 Pro_GetPartsImages 的相关参数
        /// <summary>
        /// Pro_GetPartsImages 的相关参数
        ///PartsImages
        ///xialei
        /// </summary>
        [Serializable]
        public struct GetPartsImages
        {
            //参数定义	 		     
            public const string IDPARM = "@ID";
            public const string GUIDPARM = "@Guid";
            public const string FILENAMEPARM = "@FileName";
            public const string FILESIZEPARM = "@FileSize";
            public const string FILEPATHPARM = "@FilePath";
            public const string ISAVAILABLEPARM = "@IsAvailable";
            public const string CREATEBYPARM = "@CreateBy";
            public const string CREATETIMEPARM = "@CreateTime";
            public const string LASTMODIFYBYPARM = "@LastModifyBy";
            public const string LASTMODIFYTIMEPARM = "@LastModifyTime";
            //分页参数定义  
            public const string ORDERSTRING_PARM = "@OrderString";
            public const string PAGESIZE_PARM = "@PageSize";
            public const string CURRENTPAGEINDEX_PARM = "@CurrentPageIndex";
            public const string TOTALITEMS_PARM = "@TotalItems";

            //字段属性设置
            private object ID;
            public object IDVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.ID); }
                set
                { this.ID = value; }
            }

            private object Guid;
            public object GUIDVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.Guid); }
                set
                { this.Guid = value; }
            }

            private object FileName;
            public object FILENAMEVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.FileName); }
                set
                { this.FileName = value; }
            }

            private object FileSize;
            public object FILESIZEVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.FileSize); }
                set
                { this.FileSize = value; }
            }

            private object FilePath;
            public object FILEPATHVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.FilePath); }
                set
                { this.FilePath = value; }
            }

            private object IsAvailable;
            public object ISAVAILABLEVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.IsAvailable); }
                set
                { this.IsAvailable = value; }
            }

            private object CreateBy;
            public object CREATEBYVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.CreateBy); }
                set
                { this.CreateBy = value; }
            }

            private object CreateTime;
            public object CREATETIMEVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.CreateTime); }
                set
                { this.CreateTime = value; }
            }

            private object LastModifyBy;
            public object LASTMODIFYBYVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.LastModifyBy); }
                set
                { this.LastModifyBy = value; }
            }

            private object LastModifyTime;
            public object LASTMODIFYTIMEVALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.LastModifyTime); }
                set
                { this.LastModifyTime = value; }
            }


            //分页属性设置
            private object OrderString;
            public object ORDERSTRING_VALUE
            {
                get { return CRM.UTIL.Common.TransQuote(this.OrderString); }
                set { this.OrderString = value; }
            }

            private object PageSize;
            public object PAGESIZE_VALUE
            {
                get { return CRM.UTIL.Common.TransValue(this.PageSize, CRM.UTIL.Common.DefaultPageSize); }
                set { this.PageSize = value; }
            }

            private object CurrentPageIndex;
            public object CURRENTPAGEINDEX_VALUE
            {
                get { return CRM.UTIL.Common.TransValue(this.CurrentPageIndex, CRM.UTIL.Common.DefaultCurrentPageIndex); }
                set { this.CurrentPageIndex = value; }
            }

            private object TotalItems;
            public object TOTALITEMS_VALUE
            {
                get { return CRM.UTIL.Common.TransValue(this.TotalItems); }
                set { this.TotalItems = value; }
            }

        }
        #endregion

        #region 存储过程 Pro_EditPartsImages 的相关参数
        /// <summary>
        /// Pro_EditPartsImages 的相关参数
        ///PartsImages
        ///xialei
        /// </summary>
        [Serializable]
        public struct EditPartsImages
        {
            //动作参数
            public const string ACTION_PARM = "@Action";
            //错误信息参数
            public const string ERRMSG_PARM = "@errMsg";

            public const string OUTID_PARM = "@OutID";
            ////表字段参数
            public const string IDPARM = "@ID";
            public const string GUIDPARM = "@Guid";
            public const string FILENAMEPARM = "@FileName";
            public const string FILESIZEPARM = "@FileSize";
            public const string FILEPATHPARM = "@FilePath";
            public const string ISAVAILABLEPARM = "@IsAvailable";
            public const string CREATEBYPARM = "@CreateBy";
            public const string CREATETIMEPARM = "@CreateTime";
            public const string LASTMODIFYBYPARM = "@LastModifyBy";
            public const string LASTMODIFYTIMEPARM = "@LastModifyTime";


            //动作属性
            private object Action;
            public object ACTION_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.Action); }
                set
                { this.Action = value; }
            }

            //错误信息属性
            private object errMsg;
            public object ERRMSG_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.errMsg); }
                set
                { this.errMsg = value; }
            }

            private object OutID;
            public object OUTID_VALUE
            {
                get { return CRM.UTIL.Common.TransValue(this.OutID); }
                set { this.OutID = value; }
            }

            //表字段属性
            private object ID;
            public object ID_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.ID); }
                set
                { this.ID = value; }
            }

            private object Guid;
            public object GUID_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.Guid); }
                set
                { this.Guid = value; }
            }

            private object FileName;
            public object FILENAME_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.FileName); }
                set
                { this.FileName = value; }
            }

            private object FileSize;
            public object FILESIZE_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.FileSize); }
                set
                { this.FileSize = value; }
            }

            private object FilePath;
            public object FILEPATH_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.FilePath); }
                set
                { this.FilePath = value; }
            }

            private object IsAvailable;
            public object ISAVAILABLE_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.IsAvailable); }
                set
                { this.IsAvailable = value; }
            }

            private object CreateBy;
            public object CREATEBY_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.CreateBy); }
                set
                { this.CreateBy = value; }
            }

            private object CreateTime;
            public object CREATETIME_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.CreateTime); }
                set
                { this.CreateTime = value; }
            }

            private object LastModifyBy;
            public object LASTMODIFYBY_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.LastModifyBy); }
                set
                { this.LastModifyBy = value; }
            }

            private object LastModifyTime;
            public object LASTMODIFYTIME_VALUE
            {
                get
                { return CRM.UTIL.Common.TransValue(this.LastModifyTime); }
                set
                { this.LastModifyTime = value; }
            }

        }
        #endregion
    }
}
